﻿using System;

namespace EkStudio.com.ui.unitbill.property.Event
{

    //属性回调事件
    public delegate void KEventHandler(object sender, PropertyDataEvent e);

    /// <summary>
    /// 属性改变事件
    /// </summary>
    public class PropertyDataEvent:EventArgs
    {

        private string key = "";
        private bool readOnly = false;
        private object value = null;

        public PropertyDataEvent(string _key,object _value)
        {
            key = _key;
            value = _value;
        }
        //属性的Key
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        /// <summary>
        /// 是否只读
        /// </summary>
        public bool ReadOnly
        {
            get { return readOnly; }
            set { readOnly = value; }
        }

        //属性的值
        public object Value
        {
            get
            {
                return value;
            }

            set
            {
                this.value = value;
            }
        }
    }
}
